package com.keeping.aiimagery.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.keeping.aiimagery.entity.Goods;
import com.keeping.aiimagery.entity.Invite;
import com.keeping.aiimagery.mapper.GoodsMapper;
import com.keeping.aiimagery.mapper.InviteMapper;
import com.keeping.aiimagery.service.GoodsService;
import com.keeping.aiimagery.service.InviteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 充值选项 服务实现类
 * </p>
 *
 * @author keeping
 * @since 2023-04-05
 */
@Service
public class InviteImpl extends ServiceImpl<InviteMapper, Invite> implements InviteService {
    @Resource
    private InviteMapper inviteMapper;

    public void insertInvite(int inviter_id, int invited_id){
        inviteMapper.insertInvite(inviter_id, invited_id);
    }

    public Integer getInviteId(int invited_id){
        return inviteMapper.getInviteId(invited_id);
    }
}
